//
//  GCFBaseViewController.h
//  ZhouDao
//
//  Created by hyj on 2018/5/18.
//  Copyright © 2018年 hyj. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface RightIconInfo:NSObject
@property (nonatomic, strong) NSString *title;
@property (nonatomic, strong) UIFont* textFont;
@property (nonatomic, strong, nullable) UIImage *image;
@property (nonatomic, assign) CGSize size;
@property (nonatomic, strong) UIColor *color;
@property (nonatomic, strong) UIColor *bgColor;
@property (nonatomic, assign) CGFloat radian;
@end

@interface XWBaseViewController : UIViewController<UITableViewDelegate,UITableViewDataSource>

/**
 创建title，返回键，右边按钮文字或图片
 @param title title 如果一定要返回按钮，title不要传nil,需要隐藏返回按钮，title传nil即可
 @param rightTitle 右按钮文字
 @param rightImage 右按钮图片
 */
-(void)setTitle:(NSString *)title rightTitle:(nullable NSString * )rightTitle rightImage:(nullable NSString * )rightImage;


/** 右上按钮 */
@property (nonatomic, strong) UIButton *rightButton;

@property(nonatomic,strong)UITableView* tableView;

/**
 右按钮点击事件
 */
-(void)rightAction:(UIButton*)sender;

-(void)leftAction:(UIButton*)sender;

//创建tableView
-(void)configureTableView;

-(void)configureTableViewWithStyle:(UITableViewStyle)style;



@end


NS_ASSUME_NONNULL_END
